package com.genexususa.eo.google.test.criterion;


import com.genexususa.eo.google.connection.CampaignCriterionManager;
import com.genexususa.eo.google.test.Constants;

public class ConsumeCreateProximity {

    public static void main(String[] args){

        String xml = "<GA_CampaignLocationCollection xmlns=\"Revenew1\">\n" +
                "\t<GA_CampaignLocation xmlns=\"Revenew1\">\n" +
                "\t\t<CampaignId>" + Constants.testCampaignEmiliano1 + "</CampaignId>\n" +
                "\t\t<CampaignGxId>156</CampaignGxId>\n" +
                "\t\t<ProximityId>0</ProximityId>\n" +
                "\t\t<ProximityGxId>121</ProximityGxId>\n" +
                "\t\t<Latitude>32774370</Latitude>\n" +
                "\t\t<Longitude>-117183698</Longitude>\n" +
                "\t\t<Radius>20</Radius>\n" +
                "\t\t<Address>\n" +
                "\t\t\t<StreetAddress></StreetAddress>\n" +
                "\t\t\t<StreetAddress2/>\n" +
                "\t\t\t<CityName></CityName>\n" +
                "\t\t\t<ProvidenceName>CA</ProvidenceName>\n" +
                "\t\t\t<ProvidenceCode>US-CA</ProvidenceCode>\n" +
                "\t\t\t<PostalCode>92110</PostalCode>\n" +
                "\t\t\t<CountryCode>US</CountryCode>\n" +
                "\t\t</Address>\n" +
                "\t</GA_CampaignLocation>\n" +
                "</GA_CampaignLocationCollection>";
        CampaignCriterionManager cpm = new CampaignCriterionManager();
        cpm.SetClientId(Constants.testAccountEmiliano);

        String res = cpm.CreateCampaignProximityCriterion(xml);
        //cpm.DeleteCampaignCriterion(221158047L,111968585767L);

        cpm.Finalize();

        //System.out.println(res);

    }
}
